package com.info.zhiduoduo.pay.configs.alipay;

import com.info.zhiduoduo.pay.configs.alipay.base.BaseAlipayConfig;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 企业支付宝安全发配置
 *
 * <p> 标记配置类名,并指定使用哪个配置文件, 真正的配置字段值都放在{@link BaseAlipayConfig}里面.
 * <p> 结合{@link AlipayPrincipalEnum}使用
 */
@Component
@ConfigurationProperties("ruhuo")
@PropertySource(value = {"ruhuo-alipay-${spring.profiles.active}.properties"})
@Data
@ToString
@EqualsAndHashCode(callSuper = true)
public class RuhuoAlipayConfig extends BaseAlipayConfig {

}
